package doubledispatchpattern;

public class Astroid implements Collideable{

	public Astroid() {
		
	}

	@Override
	public void collidesWith(Collideable collideable) {
		collideable.collidesWithAstroid();
	}

	
	@Override
	public void collidesWithAstroid() {
		System.out.println("Astroid collides with Astroid");
	}

	@Override
	public void collidesWithSpaceShip() {
		System.out.println("Spaceship collides with Astroid");
		
	}
	
}
